<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
	
	<p:idleMonitor id="idleMonitor" onidle="sessionDialog.show()" timeout="#{session.maxInactiveInterval * 1000}" />
	<p:dialog header="#{msg['logout.popup.header']}" resizable="false" widgetVar="sessionDialog" modal="true" width="400" height="110"
			  closable="false" appendToBody="true">
			<h:outputText value="#{msg['logout.popup.msg']}" />
			<h:panelGroup id="divSession" layout="block" style="text-align: center; margin-top: 25px">
				<p:button value="#{msg['logout.popup.btn']}" href="#"  onclick="window.location='#{facesContext.externalContext.requestContextPath}/pages/seguridad/login-interno.jsf?codigoPais='+getCookie('codigoPais')" />
			</h:panelGroup>
	</p:dialog>
</ui:composition>
